home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
ab20
/
ab20_archive
/
text
/
cmanual.lzh
/
ACM3.lzh
/
Miscellaneous
/
Example5.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-19
|
675b
|
37 lines
/* Example5 */
/* This example prints out the current time. */
#include <intuition/intuition.h>
struct IntuitionBase *IntuitionBase;
main()
{
ULONG seconds, micros;
/* Open the Intuition Library: */
IntuitionBase = (struct IntuitionBase *)
OpenLibrary( "intuition.library", 0 );
if( IntuitionBase == NULL )
exit(); /* Could NOT open the Intuition Library! */
/* Get the current time: */
CurrentTime( &seconds, µs );
/* Print out the current time: */
printf( "Seconds: %d\n", seconds );
printf( "Micros: %d\n", micros );
/* Close the Intuition Library: */
CloseLibrary( IntuitionBase );
}